
package org.openeai.lite.console.beans;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import org.apache.log4j.Logger;

@ManagedBean(name = "templateBean")
@RequestScoped
public class TemplateBean implements Serializable
{

	private static final long serialVersionUID = 1L;

	private static Logger log = Logger.getLogger(TemplateBean.class);

    private boolean visible = false;
    

    //Getters and Setters
    public void setVisible(boolean visible)
    {
        this.visible = visible;
    }
    public boolean isVisible()
    {
        return visible;
    }

    

    //Custom logic
    public void toggleIsVisible()
    {
    	log.info("Changing visibility.");
        this.visible = !visible;
    }


}
